package jwr.basic;

import jwr.hw.LaserPrint;

public class J15_Printer {
	public static void main(String args[]){
		Printer p01 = new Printer();
		p01.print();
		
		Inkjet p02 = new Inkjet();
		p02.print();
		
		Leser p03 = new Leser();
		p03.print();
	} //main
} // class

class Printer{
	public String model;
	public String maker;
	public String type;
	public int papers;
	public int remains;
	public void print(){
		System.out.println("프린터 입니다.");
	}
}

class Inkjet extends Printer{
	public int inkRemains;
	
	public void print(){
		System.out.println("잉크젯프린터 입니다.");
	}
}

class Leser extends Printer{
	public int tonerReamins;
	public void print(){
		System.out.println("레이저 프린터 입니다.");
	}
}
